#include "EPubMediaXHtmlImp.h"

EPubMediaXHtmlImp::EPubMediaXHtmlImp()
{
}

EPubPointer<IEPubBuffer> EPubMediaXHtmlImp::Serialize(EPubPointer<IEPubEncryption> encryption) const
{
	return NULL;
}

EPUB_Result EPubMediaXHtmlImp::Deserialize(const EPubPointer<IEPubBuffer> buffer, EPubPointer<IEPubDecryption> decryption)
{
	EPUB_Result ret = EPUB_SUCCESS;
	if(!decryption) {
		m_Content.assign((const char *)buffer->GetBuffer());
	} else {
		m_Content.assign((const char *)decryption->Decrypt(buffer)->GetBuffer());
	}
	return ret;
}